/**
 * Created by zhouli on 18/3/13
 * Email li.zhou@huilianyi.com
 */
import config from 'config';
import httpFetch from 'share/httpFetch';
import errorMessage from 'share/errorMessage';
import SobService from 'containers/finance-setting/set-of-books/set-of-books.service';
import valueListService from 'containers/setting/value-list/value-list.service';
export default {
  //  根据成本中心项id 分页查询  公司关联成本中心项
  getCostCenterItemCompany: function (params, costCenterItemId) {
    // let params = {
    //   page:[],
    //   size:[],
    // }
    return new Promise(function (resolve, reject) {
      httpFetch.get(config.baseUrl + '/api/company/costcenteritem/by/' + costCenterItemId , params)
        .then(function (res) {
          resolve(res);
        })
        .catch(function (err) {
          errorMessage(err.response);
          reject(err.response);
        })
    })
  },

}
